Fixed-point Simulation Utility for C and C++ Based Digital Signal Processing Programs
نویسندگان
چکیده
This utility software automatically converts a oating-point digital signal processing program written in C or C++ language to a xed-point program. The conversion is conducted by deening a new xed-point data class and utilizing the operator overloading characteristic of the C++ language. A generalized xed-point format which consists of the wordlength, integer wordlength, sign, overrow, and quatization mode is employed for specifying a xed-point variable or a xed-point constant. Thus, it is possible to simulate the nite wordlength and the scaling eeects of digital signal processing programs very easily.
منابع مشابه
Fixed-Point Optimization Utility for C and C Based Digital Signal Processing Programs
Fixed-point optimization utility software is developed that can aid scaling and wordlength determination of digital signal processing algorithms written in C or C++. This utility consists of two programs: the range estimator and the fixed-point simulator. The former estimates the ranges of floatingpoint variables for purposes of automatic scaling, and the latter translates floating-point progra...
متن کاملFixed - Point Optimization Utilityfor C and C + + Based Digitalsignal Processing
Two xed-point optimization utility programs, the range estimator and the xed-point simulator, are developed for scaling and wordlength determination of digital signal processing algorithms written in C or C++ language. By exploiting the operator overloading characteristics of C++ language, range estimation and xed-point simulation can be conducted just by modifying the variable declaration of t...
متن کاملA Floating - point to Fixed - point C Converterfor Fixed - point Digital Signal
An automatic scaling C program translator is developed for the eecient execution of application programs in xed-point digital signal processors. The program for range estimation is automatically generated by inserting codes which collect the statistics of each signal during the simulation. With the range information, the number of shifts needed for the scaling is determined and the oating-point...
متن کاملA floating-point to integer C converter with shift reduction for fixed-point digital signal processors
A floating-point to integer C program translator is developed for convenient programming and efficient use of fixed-point programmable digital signal processors (DSP’s). It not only converts data types and supports automatic scaling, but also conducts shift optimization to enhance execution speed. Since the input and output of this translator are ANSI C compliant programs, it can be used for an...
متن کاملDesign and DSP Implementation of Fixed-Point Systems
This article is an introduction to the FRIDGE design environment which supports the design and DSP implementation of fixedpoint digital signal processing systems. We present the tool-supported transformation of signal processing algorithms coded in floating-point ANSI C to a fixed-point representation in SystemC. We introduce the novel approach to control and data flow analysis, which is necess...
متن کامل